package com.zhangmeng.tools.config;

import javafx.scene.layout.AnchorPane;

import java.util.HashMap;
import java.util.Map;

/**
 * @author : 芊芊墨客
 * @version : 1.0
 * @date : 2023-05-18 16:22
 */
public class Constants {


    public enum Type {
        Music,
        VideoTranscoder
    }

    public static Map<Type, AnchorPane> pane_map = new HashMap<>();

    public static AnchorPane getRoot(Type type) {
        return pane_map.get(type);
    }

    public static AnchorPane setRoot(Type type,AnchorPane root) {
        return pane_map.put(type,root);
    }
}
